package com.wisdytech.linkdcs.equipLifeCycle.malfunction.service;

import com.github.pagehelper.PageInfo;
import com.wisdytech.common.bean.Filter;
import com.wisdytech.linkdcs.equipLifeCycle.malfunction.dto.MalfunctionSearchDto;
import com.wisdytech.linkdcs.equipLifeCycle.malfunction.model.MalfunctionRecord;
import com.wisdytech.linkdcs.equipLifeCycle.malfunction.vo.MRegisterVo;
import com.wisdytech.linkdcs.equipLifeCycle.malfunction.vo.MalfunctionVo;

;

/**
 * <p>
 * 故障登记表
 * </p>
 *
 * @author dailibo
 * @since 2018-06-11
 */
public interface IMalfunctionRecordService {
	
	
	/**
	 * 分页查询所有的故障列表
	 * @param filter
	 * @return
	 */
	public PageInfo<MalfunctionVo> selectAllMalfunctionLists(Filter filter,MalfunctionSearchDto dto);
	
	/**
	 * 
	 * 增加故障登记
	 * @param record
	 * */
	public boolean add(MalfunctionRecord record,String userName);
	
	/**
	 * 批量提交故障记录
	 * @param recordIds 故障id,多个使用逗号隔开
	 * @param userName 用户名
	 * @return
	 */
	public boolean submint(String recordIds,String userName);
	
	/**
	 * 获取故障登记记录
	 * @param pkId
	 * @return
	 */
	public MRegisterVo getRecordById(String pkId);

}
